Documentation

Developers

Featured Endpoints

Checkouts

Customer Portal

Customer-Sessions

Customers

Discounts

License Keys

Oauth2

Organizations

Products

Issue Funding Endpoints

External Organizations

Repositories

Other Endpoints

Advertisements

Benefits

Checkout-Links

Checkouts

Custom-Fields

Customer Portal

Files

Metrics

Oauth2

Orders

Subscriptions

license_keys

Update License Key

patch
/v1/license-keys/{id}
Update a license key.
Successful Response
curl -X PATCH \
    'https://api.polar.sh/v1/license-keys/00000000-0000-0000-0000-000000000000' \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer <token>" \
    -d '{}'
Responses
{
  "id": "00000000-0000-0000-0000-000000000000",
  "organization_id": "00000000-0000-0000-0000-000000000000",
  "user_id": "00000000-0000-0000-0000-000000000000",
  "customer_id": "00000000-0000-0000-0000-000000000000",
  "user": {
    "id": "00000000-0000-0000-0000-000000000000",
    "email": "string",
    "public_name": "string",
    "avatar_url": "string"
  },
  "customer": {
    "created_at": "2024-12-21T00:00:00.000Z",
    "modified_at": "2024-12-21T00:00:00.000Z",
    "id": "00000000-0000-0000-0000-000000000000",
    "metadata": {},
    "email": "string",
    "email_verified": false,
    "name": "string",
    "billing_address": {
      "line1": "string",
      "line2": "string",
      "postal_code": "string",
      "city": "string",
      "state": "string",
      "country": "string"
    },
    "tax_id": [
      "string",
      "ad_nrt"
    ],
    "organization_id": "00000000-0000-0000-0000-000000000000",
    "avatar_url": "string"
  },
  "benefit_id": "00000000-0000-0000-0000-000000000000",
  "key": "string",
  "display_key": "string",
  "status": "granted",
  "limit_activations": 0,
  "usage": 0,
  "limit_usage": 0,
  "validations": 0,
  "last_validated_at": "2024-12-21T00:00:00.000Z",
  "expires_at": "2024-12-21T00:00:00.000Z"
}